<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>视频查看页面</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <#include "../../include/layui.ftl" />
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body" style="padding: 15px;">
          <div id="videos"></div>
      </div>
    </div>
  </div>


  <script>
  layui.config({
    base: '${path}/plug-in/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index','form','jquery','upload','ckplayer'],function () {
    var form = layui.form,
           $ = layui.$,
        upload = layui.upload,
        ckplayer = layui.ckplayer;
      var vUrl = "/${url!}",
          videoObject = {
              container: '#videos',
              loop: true,
              autoplay: true,
              video: [
                  [vUrl, 'video/mp4']
              ]
          };
      var player = new ckplayer(videoObject);

  });
  </script>
</body>
</html>
